package com.simon.jkxj.ui.diet;

import java.util.ArrayList;
import java.util.List;

public class BloodPressureDataManager {
    private static final List<BloodPressureRecordActivity.BloodPressureRecord> recordList = new ArrayList<>();

    public static void addRecord(BloodPressureRecordActivity.BloodPressureRecord record) {
        recordList.add(record);
    }

    public static List<BloodPressureRecordActivity.BloodPressureRecord> getRecords() {
        return new ArrayList<>(recordList);
    }

    public static void clear() {
        recordList.clear();
    }

    public static BloodPressureRecordActivity.BloodPressureRecord getLatestRecord() {
        if (recordList.isEmpty()) return null;
        return recordList.get(recordList.size() - 1);
    }
} 